<input type="hidden" id="sign_up_status" value="<?php echo $this->session->flashdata('sign_up_status'); ?>" />
<script type="text/javascript">
  $(document).ready(function() {
    var sign_up_status = $.trim($('#sign_up_status').val());
    if (sign_up_status == 1) {
      toastr.success('Successfully created your account. Please check your email inbox !');
    }
    if (sign_up_status == 2) {
      toastr.error('Please provide your innovature email id !');
    }
    if (sign_up_status == 3) {
      toastr.error('User already exists or error occured !');
    }
    if (sign_up_status == 4) {
      toastr.error('Invalid email id or Emails must be same.');
    }
  });
</script>

<div class="container" style="min-height: 500px;">
  <div class="row">
    <div class="span6 offset2">
      <div class="login" style="float: right;">
        <form class="form-horizontal" method="post" action="<?php echo base_url('signup'); ?>">
          <input type="hidden" name="csrf_token" value="<?php echo set_csrf_token(); ?>"/>
          <div class="control-group">
            <div class="controls">
              <h4>Sign Up</h4>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label">Email </label>
            <div class="controls">
              <input id="inno_email" type="text" placeholder="Innovature email" name="inno_email" autofocus="true"/>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label">Confirm Email </label>
            <div class="controls">
              <input id="inno_email_confirm" type="text" placeholder="Innovature email" name="inno_email_confirm" autofocus="true"/>
            </div>
          </div>
          <div class="control-group">
            <div class="controls">
              <input onclick="return validate_signup();" class="btn" type="submit" value="Sign Up"/>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>